home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / ExerciseLog1.09 / ExerciseLog1.09 / background_6476.xml < prev    next >
Extensible Markup Language  |  1994-05-03  |  67KB  |  1,396 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>6476</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_6693.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3217.css" />
  11.     <part>
  12.         <id>37</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <true /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>45</left>
  23.             <top>82</top>
  24.             <right>105</right>
  25.             <bottom>283</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Times</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>11</textHeight>
  40.         <name>Date</name>
  41.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  42.     </part>
  43.     <part>
  44.         <id>74</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <true /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>88</left>
  55.             <top>82</top>
  56.             <right>151</right>
  57.             <bottom>283</bottom>
  58.         </rect>
  59.         <style>scrolling</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Times</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>11</textHeight>
  72.         <name>SportColumn</name>
  73.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  74.     </part>
  75.     <part>
  76.         <id>75</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <true /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <true /> </lockText>
  85.         <rect>
  86.             <left>134</left>
  87.             <top>82</top>
  88.             <right>190</right>
  89.             <bottom>283</bottom>
  90.         </rect>
  91.         <style>scrolling</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Times</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>11</textHeight>
  104.         <name>TypeColumn</name>
  105.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  106.     </part>
  107.     <part>
  108.         <id>80</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <true /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <true /> </lockText>
  117.         <rect>
  118.             <left>173</left>
  119.             <top>82</top>
  120.             <right>206</right>
  121.             <bottom>283</bottom>
  122.         </rect>
  123.         <style>scrolling</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>center</textAlign>
  132.         <font>Times</font>
  133.         <textSize>9</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>11</textHeight>
  136.         <name>EffortColumn</name>
  137.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  138.     </part>
  139.     <part>
  140.         <id>38</id>
  141.         <type>field</type>
  142.         <visible> <true /> </visible>
  143.         <dontWrap> <true /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <true /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <true /> </lockText>
  149.         <rect>
  150.             <left>189</left>
  151.             <top>82</top>
  152.             <right>352</right>
  153.             <bottom>283</bottom>
  154.         </rect>
  155.         <style>scrolling</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <false /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>left</textAlign>
  164.         <font>Times</font>
  165.         <textSize>9</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <textHeight>11</textHeight>
  168.         <name>Workout</name>
  169.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  170.     </part>
  171.     <part>
  172.         <id>40</id>
  173.         <type>field</type>
  174.         <visible> <true /> </visible>
  175.         <dontWrap> <true /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <true /> </fixedLineHeight>
  179.         <autoTab> <false /> </autoTab>
  180.         <lockText> <true /> </lockText>
  181.         <rect>
  182.             <left>335</left>
  183.             <top>82</top>
  184.             <right>385</right>
  185.             <bottom>283</bottom>
  186.         </rect>
  187.         <style>scrolling</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <false /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Times</font>
  197.         <textSize>9</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>11</textHeight>
  200.         <name>Distance</name>
  201.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  202.     </part>
  203.     <part>
  204.         <id>41</id>
  205.         <type>field</type>
  206.         <visible> <true /> </visible>
  207.         <dontWrap> <true /> </dontWrap>
  208.         <dontSearch> <false /> </dontSearch>
  209.         <sharedText> <false /> </sharedText>
  210.         <fixedLineHeight> <true /> </fixedLineHeight>
  211.         <autoTab> <false /> </autoTab>
  212.         <lockText> <true /> </lockText>
  213.         <rect>
  214.             <left>368</left>
  215.             <top>82</top>
  216.             <right>418</right>
  217.             <bottom>283</bottom>
  218.         </rect>
  219.         <style>scrolling</style>
  220.         <autoSelect> <false /> </autoSelect>
  221.         <showLines> <false /> </showLines>
  222.         <wideMargins> <false /> </wideMargins>
  223.         <multipleLines> <false /> </multipleLines>
  224.         <reservedFamily> 0 </reservedFamily>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>left</textAlign>
  228.         <font>Times</font>
  229.         <textSize>9</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <textHeight>11</textHeight>
  232.         <name>Time</name>
  233.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  234.     </part>
  235.     <part>
  236.         <id>44</id>
  237.         <type>field</type>
  238.         <visible> <true /> </visible>
  239.         <dontWrap> <true /> </dontWrap>
  240.         <dontSearch> <false /> </dontSearch>
  241.         <sharedText> <false /> </sharedText>
  242.         <fixedLineHeight> <true /> </fixedLineHeight>
  243.         <autoTab> <false /> </autoTab>
  244.         <lockText> <true /> </lockText>
  245.         <rect>
  246.             <left>401</left>
  247.             <top>82</top>
  248.             <right>451</right>
  249.             <bottom>283</bottom>
  250.         </rect>
  251.         <style>scrolling</style>
  252.         <autoSelect> <false /> </autoSelect>
  253.         <showLines> <false /> </showLines>
  254.         <wideMargins> <false /> </wideMargins>
  255.         <multipleLines> <false /> </multipleLines>
  256.         <reservedFamily> 0 </reservedFamily>
  257.         <titleWidth>0</titleWidth>
  258.         <icon>0</icon>
  259.         <textAlign>left</textAlign>
  260.         <font>Times</font>
  261.         <textSize>9</textSize>
  262.         <textStyle>plain</textStyle>
  263.         <textHeight>11</textHeight>
  264.         <name>Choice1</name>
  265.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  266.     </part>
  267.     <part>
  268.         <id>45</id>
  269.         <type>field</type>
  270.         <visible> <true /> </visible>
  271.         <dontWrap> <true /> </dontWrap>
  272.         <dontSearch> <false /> </dontSearch>
  273.         <sharedText> <false /> </sharedText>
  274.         <fixedLineHeight> <true /> </fixedLineHeight>
  275.         <autoTab> <false /> </autoTab>
  276.         <lockText> <true /> </lockText>
  277.         <rect>
  278.             <left>434</left>
  279.             <top>82</top>
  280.             <right>484</right>
  281.             <bottom>283</bottom>
  282.         </rect>
  283.         <style>scrolling</style>
  284.         <autoSelect> <false /> </autoSelect>
  285.         <showLines> <false /> </showLines>
  286.         <wideMargins> <false /> </wideMargins>
  287.         <multipleLines> <false /> </multipleLines>
  288.         <reservedFamily> 0 </reservedFamily>
  289.         <titleWidth>0</titleWidth>
  290.         <icon>0</icon>
  291.         <textAlign>left</textAlign>
  292.         <font>Times</font>
  293.         <textSize>9</textSize>
  294.         <textStyle>plain</textStyle>
  295.         <textHeight>11</textHeight>
  296.         <name>Choice2</name>
  297.         <script>on mouseUpjumpToWorkout clickLine()end mouseUpon mouseWithinsimulScroll3 theFields()end mouseWithin</script>
  298.     </part>
  299.     <part>
  300.         <id>36</id>
  301.         <type>field</type>
  302.         <visible> <true /> </visible>
  303.         <dontWrap> <false /> </dontWrap>
  304.         <dontSearch> <true /> </dontSearch>
  305.         <sharedText> <false /> </sharedText>
  306.         <fixedLineHeight> <true /> </fixedLineHeight>
  307.         <autoTab> <false /> </autoTab>
  308.         <lockText> <true /> </lockText>
  309.         <rect>
  310.             <left>44</left>
  311.             <top>23</top>
  312.             <right>100</right>
  313.             <bottom>39</bottom>
  314.         </rect>
  315.         <style>rectangle</style>
  316.         <autoSelect> <false /> </autoSelect>
  317.         <showLines> <false /> </showLines>
  318.         <wideMargins> <false /> </wideMargins>
  319.         <multipleLines> <false /> </multipleLines>
  320.         <reservedFamily> 0 </reservedFamily>
  321.         <titleWidth>0</titleWidth>
  322.         <icon>0</icon>
  323.         <textAlign>right</textAlign>
  324.         <font>Palatino</font>
  325.         <textSize>10</textSize>
  326.         <textStyle>bold</textStyle>
  327.         <textHeight>14</textHeight>
  328.         <name>TypeTitle</name>
  329.         <script>-- Toggle back and forth between workouts and equipment as categorieson mouseUpif me = "Workouts" thenput "Equipment" into meput empty into bkgnd field "Selection"else  -- me = "Equipment"put "Workouts" into meput "Current Selections..." into bkgnd field "Selection"end ifnewCard -- default: use all effortsend mouseUp</script>
  330.     </part>
  331.     <part>
  332.         <id>47</id>
  333.         <type>field</type>
  334.         <visible> <true /> </visible>
  335.         <dontWrap> <false /> </dontWrap>
  336.         <dontSearch> <false /> </dontSearch>
  337.         <sharedText> <false /> </sharedText>
  338.         <fixedLineHeight> <false /> </fixedLineHeight>
  339.         <autoTab> <false /> </autoTab>
  340.         <lockText> <true /> </lockText>
  341.         <rect>
  342.             <left>401</left>
  343.             <top>58</top>
  344.             <right>437</right>
  345.             <bottom>83</bottom>
  346.         </rect>
  347.         <style>shadow</style>
  348.         <autoSelect> <false /> </autoSelect>
  349.         <showLines> <false /> </showLines>
  350.         <wideMargins> <false /> </wideMargins>
  351.         <multipleLines> <false /> </multipleLines>
  352.         <reservedFamily> 0 </reservedFamily>
  353.         <titleWidth>0</titleWidth>
  354.         <icon>0</icon>
  355.         <textAlign>left</textAlign>
  356.         <font>Times</font>
  357.         <textSize>9</textSize>
  358.         <textStyle>bold</textStyle>
  359.         <textHeight>12</textHeight>
  360.         <name>Choice1Name</name>
  361.         <script>on mouseDownif bkgnd field "Date" is empty thendoPopup the name of me,"Pace,Cum Dist,Cum Time,Pulse,Wght"if (the number of words of me) = 1 thenput return before meput "n.a." into bkgnd field "Carry1"elseput 0 into bkgnd field "Carry1"end ifend ifend mouseDown</script>
  362.     </part>
  363.     <part>
  364.         <id>48</id>
  365.         <type>field</type>
  366.         <visible> <true /> </visible>
  367.         <dontWrap> <false /> </dontWrap>
  368.         <dontSearch> <false /> </dontSearch>
  369.         <sharedText> <false /> </sharedText>
  370.         <fixedLineHeight> <false /> </fixedLineHeight>
  371.         <autoTab> <false /> </autoTab>
  372.         <lockText> <true /> </lockText>
  373.         <rect>
  374.             <left>434</left>
  375.             <top>58</top>
  376.             <right>470</right>
  377.             <bottom>83</bottom>
  378.         </rect>
  379.         <style>shadow</style>
  380.         <autoSelect> <false /> </autoSelect>
  381.         <showLines> <false /> </showLines>
  382.         <wideMargins> <false /> </wideMargins>
  383.         <multipleLines> <false /> </multipleLines>
  384.         <reservedFamily> 0 </reservedFamily>
  385.         <titleWidth>0</titleWidth>
  386.         <icon>0</icon>
  387.         <textAlign>left</textAlign>
  388.         <font>Times</font>
  389.         <textSize>9</textSize>
  390.         <textStyle>bold</textStyle>
  391.         <textHeight>12</textHeight>
  392.         <name>Choice2Name</name>
  393.         <script>on mouseDownif bkgnd field "Date" is empty thendoPopup the name of me,"Pace,Cum Dist,Cum Time,Pulse,Wght"if (the number of words of me) = 1 thenput return before meput "n.a." into bkgnd field "Carry2"elseput 0 into bkgnd field "Carry2"end ifend ifend mouseDown</script>
  394.     </part>
  395.     <part>
  396.         <id>51</id>
  397.         <type>field</type>
  398.         <visible> <true /> </visible>
  399.         <dontWrap> <true /> </dontWrap>
  400.         <dontSearch> <false /> </dontSearch>
  401.         <sharedText> <false /> </sharedText>
  402.         <fixedLineHeight> <false /> </fixedLineHeight>
  403.         <autoTab> <false /> </autoTab>
  404.         <lockText> <true /> </lockText>
  405.         <rect>
  406.             <left>102</left>
  407.             <top>21</top>
  408.             <right>221</right>
  409.             <bottom>44</bottom>
  410.         </rect>
  411.         <style>shadow</style>
  412.         <autoSelect> <false /> </autoSelect>
  413.         <showLines> <false /> </showLines>
  414.         <wideMargins> <true /> </wideMargins>
  415.         <multipleLines> <false /> </multipleLines>
  416.         <reservedFamily> 0 </reservedFamily>
  417.         <titleWidth>0</titleWidth>
  418.         <icon>0</icon>
  419.         <textAlign>center</textAlign>
  420.         <font>Palatino</font>
  421.         <textSize>10</textSize>
  422.         <textStyle>plain</textStyle>
  423.         <textHeight>13</textHeight>
  424.         <name>Selection</name>
  425.         <script>on mouseDownif me = "Current Selections..." then doWorkoutselse doEquipmentend mouseDown-- Show a hierarchical popup menu (and possibly a list) to select-- one or more workouts for different sports to function as filters.on doWorkoutsglobal allTypesput allTypes into popupListrepeat with x = 1 to the number of lines of popupListput ",Warmup" after line x of popupListend repeatput bkgnd field "CurrentSelections" into CurSelif CurSel is empty then -- mark no selections in bkgnd fieldrepeat with x = 1 to the number of lines of allTypesput empty into line x of noSelectionsend repeatput noSelections into bkgnd field "CurrentSelections"else -- put checkmarks in front of selectionsrepeat with x = 1 to the number of lines of popupListrepeat with y = 2 to the number of items of line x of popupListif item y of line x of popupList is in line x of CurSel thenput "!‚àö" after item y of line x of popupListend ifend repeatend repeatend ifget FullHPop (popupList)if it is empty then exit doWorkoutsput item 3 of it into theLineif item 2 of it is empty then -- selected sportput item 2 to 99 of line theLine of allTypes into thisListput "s=" into alreadySelectedrepeat with x = 1 to the number of items of thisListif item x of thisList is in line theLine of CurSel thenput x & "," after alreadySelectedend ifend repeatif alreadySelected <> "s=" then delete last char of alreadySelectedget ListSelect (3,thisList,alreadySelected,"Select workout types:",¬¨"Palatino,10")if it is not empty thenput it into line theLine of bkgnd field "CurrentSelections"end ifelse -- selected subitem: add or remove from selectionput item 4 of line 1 of it into itemSelectedput item 2 to 99 of line theLine of popupList into thisListput empty into newSelectionrepeat with x = 1 to the number of items of thisListput the number of chars of item x of thisList into nCif char nC-1 to nC of item x of thisList = "!‚àö" thenif x <> itemSelected thenput char 1 to nC-2 of item x of thisList & ","¬¨after newSelectionend ifelse if x = itemSelected thenput item x of thisList & "," after newSelectionend ifend repeatif newSelection is not empty then delete last char of newSelectionput newSelection into line theLine of bkgnd fld "CurrentSelections"end ifend doWorkouts-- Show a popup menu to select equipment (shoes, etc.)on doEquipmentglobal allEquipmentdoPopup the name of me,(allEquipment)end doEquipment</script>
  426.     </part>
  427.     <part>
  428.         <id>57</id>
  429.         <type>field</type>
  430.         <visible> <true /> </visible>
  431.         <dontWrap> <false /> </dontWrap>
  432.         <dontSearch> <false /> </dontSearch>
  433.         <sharedText> <false /> </sharedText>
  434.         <fixedLineHeight> <true /> </fixedLineHeight>
  435.         <autoTab> <false /> </autoTab>
  436.         <lockText> <true /> </lockText>
  437.         <rect>
  438.             <left>262</left>
  439.             <top>25</top>
  440.             <right>312</right>
  441.             <bottom>40</bottom>
  442.         </rect>
  443.         <style>transparent</style>
  444.         <autoSelect> <false /> </autoSelect>
  445.         <showLines> <true /> </showLines>
  446.         <wideMargins> <false /> </wideMargins>
  447.         <multipleLines> <false /> </multipleLines>
  448.         <reservedFamily> 0 </reservedFamily>
  449.         <titleWidth>0</titleWidth>
  450.         <icon>0</icon>
  451.         <textAlign>left</textAlign>
  452.         <font>Palatino</font>
  453.         <textSize>10</textSize>
  454.         <textStyle>plain</textStyle>
  455.         <textHeight>13</textHeight>
  456.         <name>From</name>
  457.         <script>on mouseUpanswer "Put day after last workout listed below into this field?"¬¨with "No" or "Yes"if it is "Yes" then updateFromend mouseUpon updateFromif bkgnd field "Date" is empty then-- use date of first workout card in stackput word 1 of the short name of card 1 of bkgnd "Workouts" into theDateif the result is empty thenconvert theDate to short dateput theDate into meelse put the short date into me -- error -> use today's dateelseput last line of bkgnd field "Date" into prevDateconvert prevDate to secondsadd 86400 to prevDateconvert prevDate to short dateput prevDate into meend ifend updateFrom</script>
  458.     </part>
  459.     <part>
  460.         <id>58</id>
  461.         <type>field</type>
  462.         <visible> <true /> </visible>
  463.         <dontWrap> <false /> </dontWrap>
  464.         <dontSearch> <false /> </dontSearch>
  465.         <sharedText> <false /> </sharedText>
  466.         <fixedLineHeight> <true /> </fixedLineHeight>
  467.         <autoTab> <false /> </autoTab>
  468.         <lockText> <true /> </lockText>
  469.         <rect>
  470.             <left>262</left>
  471.             <top>40</top>
  472.             <right>312</right>
  473.             <bottom>55</bottom>
  474.         </rect>
  475.         <style>transparent</style>
  476.         <autoSelect> <false /> </autoSelect>
  477.         <showLines> <true /> </showLines>
  478.         <wideMargins> <false /> </wideMargins>
  479.         <multipleLines> <false /> </multipleLines>
  480.         <reservedFamily> 0 </reservedFamily>
  481.         <titleWidth>0</titleWidth>
  482.         <icon>0</icon>
  483.         <textAlign>left</textAlign>
  484.         <font>Palatino</font>
  485.         <textSize>10</textSize>
  486.         <textStyle>plain</textStyle>
  487.         <textHeight>13</textHeight>
  488.         <name>To</name>
  489.         <script>on mouseUpanswer "Put today‚Äôs date into this field?" with "No" or "Yes"if it is "Yes" then put the short date into meend mouseUp</script>
  490.     </part>
  491.     <part>
  492.         <id>60</id>
  493.         <type>button</type>
  494.         <visible> <true /> </visible>
  495.         <reserved5> 0 </reserved5>
  496.         <reserved4> 0 </reserved4>
  497.         <reserved3> 0 </reserved3>
  498.         <reserved2> 0 </reserved2>
  499.         <reserved1> 0 </reserved1>
  500.         <enabled> <true /> </enabled>
  501.         <rect>
  502.             <left>315</left>
  503.             <top>25</top>
  504.             <right>330</right>
  505.             <bottom>40</bottom>
  506.         </rect>
  507.         <style>transparent</style>
  508.         <showName> <false /> </showName>
  509.         <highlight> <false /> </highlight>
  510.         <autoHighlight> <false /> </autoHighlight>
  511.         <sharedHighlight> <true /> </sharedHighlight>
  512.         <family>0</family>
  513.         <titleWidth>0</titleWidth>
  514.         <icon>0</icon>
  515.         <textAlign>center</textAlign>
  516.         <font>Chicago</font>
  517.         <textSize>12</textSize>
  518.         <textStyle>plain</textStyle>
  519.         <name>-</name>
  520.         <script>on mouseDown -- on first press add one day (AddDays is in bkgnd script)if bkgnd field "From" is empty thenput the short date into bkgnd field "From"elseaddDays "From",-1end ifwait 30    -- and wait a while, to avoid immediate continuous addingend mouseDownon mouseStillDown -- on continued pressing, repeatedly add daysshow messageput "press the option key to move 10 days at a time"repeat until the mouse is upif the optionKey is down thenaddDays "From",-10else addDays "From",-2end repeathide messageend mouseStillDown</script>
  521.     </part>
  522.     <part>
  523.         <id>61</id>
  524.         <type>button</type>
  525.         <visible> <true /> </visible>
  526.         <reserved5> 0 </reserved5>
  527.         <reserved4> 0 </reserved4>
  528.         <reserved3> 0 </reserved3>
  529.         <reserved2> 0 </reserved2>
  530.         <reserved1> 0 </reserved1>
  531.         <enabled> <true /> </enabled>
  532.         <rect>
  533.             <left>329</left>
  534.             <top>25</top>
  535.             <right>344</right>
  536.             <bottom>40</bottom>
  537.         </rect>
  538.         <style>transparent</style>
  539.         <showName> <false /> </showName>
  540.         <highlight> <false /> </highlight>
  541.         <autoHighlight> <false /> </autoHighlight>
  542.         <sharedHighlight> <true /> </sharedHighlight>
  543.         <family>0</family>
  544.         <titleWidth>0</titleWidth>
  545.         <icon>0</icon>
  546.         <textAlign>center</textAlign>
  547.         <font>Chicago</font>
  548.         <textSize>12</textSize>
  549.         <textStyle>plain</textStyle>
  550.         <name>+</name>
  551.         <script>on mouseDown -- on first press add one day (AddDays is in bkgnd script)if bkgnd field "From" is empty thenput the short date into bkgnd field "From"elseaddDays "From",1end ifwait 30    -- and wait a while, to avoid immediate continuous addingend mouseDownon mouseStillDown -- on continued pressing, repeatedly add daysshow messageput "press the option key to move 10 days at a time"repeat until the mouse is upif the optionKey is down thenaddDays "From",10else addDays "From",2end repeathide messageend mouseStillDown</script>
  552.     </part>
  553.     <part>
  554.         <id>62</id>
  555.         <type>button</type>
  556.         <visible> <true /> </visible>
  557.         <reserved5> 0 </reserved5>
  558.         <reserved4> 0 </reserved4>
  559.         <reserved3> 0 </reserved3>
  560.         <reserved2> 0 </reserved2>
  561.         <reserved1> 0 </reserved1>
  562.         <enabled> <true /> </enabled>
  563.         <rect>
  564.             <left>315</left>
  565.             <top>40</top>
  566.             <right>330</right>
  567.             <bottom>55</bottom>
  568.         </rect>
  569.         <style>transparent</style>
  570.         <showName> <false /> </showName>
  571.         <highlight> <false /> </highlight>
  572.         <autoHighlight> <false /> </autoHighlight>
  573.         <sharedHighlight> <true /> </sharedHighlight>
  574.         <family>0</family>
  575.         <titleWidth>0</titleWidth>
  576.         <icon>0</icon>
  577.         <textAlign>center</textAlign>
  578.         <font>Chicago</font>
  579.         <textSize>12</textSize>
  580.         <textStyle>plain</textStyle>
  581.         <name>-</name>
  582.         <script>on mouseDown -- on first press add one day (AddDays is in bkgnd script)if bkgnd field "To" is empty thenput the short date into bkgnd field "To"elseaddDays "To",-1end ifwait 30    -- and wait a while, to avoid immediate continuous addingend mouseDownon mouseStillDown -- on continued pressing, repeatedly add daysshow messageput "press the option key to move 10 days at a time"repeat until the mouse is upif the optionKey is down thenaddDays "To",-10else addDays "To",-2end repeathide messageend mouseStillDown</script>
  583.     </part>
  584.     <part>
  585.         <id>63</id>
  586.         <type>button</type>
  587.         <visible> <true /> </visible>
  588.         <reserved5> 0 </reserved5>
  589.         <reserved4> 0 </reserved4>
  590.         <reserved3> 0 </reserved3>
  591.         <reserved2> 0 </reserved2>
  592.         <reserved1> 0 </reserved1>
  593.         <enabled> <true /> </enabled>
  594.         <rect>
  595.             <left>329</left>
  596.             <top>40</top>
  597.             <right>344</right>
  598.             <bottom>55</bottom>
  599.         </rect>
  600.         <style>transparent</style>
  601.         <showName> <false /> </showName>
  602.         <highlight> <false /> </highlight>
  603.         <autoHighlight> <false /> </autoHighlight>
  604.         <sharedHighlight> <true /> </sharedHighlight>
  605.         <family>0</family>
  606.         <titleWidth>0</titleWidth>
  607.         <icon>0</icon>
  608.         <textAlign>center</textAlign>
  609.         <font>Chicago</font>
  610.         <textSize>12</textSize>
  611.         <textStyle>plain</textStyle>
  612.         <name>+</name>
  613.         <script>on mouseDown -- on first press add one day (AddDays is in bkgnd script)if bkgnd field "To" is empty thenput the short date into bkgnd field "To"elseaddDays "To",1end ifwait 30    -- and wait a while, to avoid immediate continuous addingend mouseDownon mouseStillDown -- on continued pressing, repeatedly add daysshow messageput "press the option key to move 10 days at a time"repeat until the mouse is upif the optionKey is down thenaddDays "To",10else addDays "To",2end repeathide messageend mouseStillDown</script>
  614.     </part>
  615.     <part>
  616.         <id>72</id>
  617.         <type>button</type>
  618.         <visible> <true /> </visible>
  619.         <reserved5> 0 </reserved5>
  620.         <reserved4> 0 </reserved4>
  621.         <reserved3> 0 </reserved3>
  622.         <reserved2> 0 </reserved2>
  623.         <reserved1> 0 </reserved1>
  624.         <enabled> <true /> </enabled>
  625.         <rect>
  626.             <left>467</left>
  627.             <top>82</top>
  628.             <right>484</right>
  629.             <bottom>98</bottom>
  630.         </rect>
  631.         <style>transparent</style>
  632.         <showName> <false /> </showName>
  633.         <highlight> <false /> </highlight>
  634.         <autoHighlight> <false /> </autoHighlight>
  635.         <sharedHighlight> <true /> </sharedHighlight>
  636.         <family>0</family>
  637.         <titleWidth>0</titleWidth>
  638.         <icon>0</icon>
  639.         <textAlign>center</textAlign>
  640.         <font>Chicago</font>
  641.         <textSize>12</textSize>
  642.         <textStyle>plain</textStyle>
  643.         <name></name>
  644.         <script>on mouseDownsimulScroll1 theFields()end mouseDown</script>
  645.     </part>
  646.     <part>
  647.         <id>73</id>
  648.         <type>button</type>
  649.         <visible> <true /> </visible>
  650.         <reserved5> 0 </reserved5>
  651.         <reserved4> 0 </reserved4>
  652.         <reserved3> 0 </reserved3>
  653.         <reserved2> 0 </reserved2>
  654.         <reserved1> 0 </reserved1>
  655.         <enabled> <true /> </enabled>
  656.         <rect>
  657.             <left>467</left>
  658.             <top>266</top>
  659.             <right>484</right>
  660.             <bottom>282</bottom>
  661.         </rect>
  662.         <style>transparent</style>
  663.         <showName> <false /> </showName>
  664.         <highlight> <false /> </highlight>
  665.         <autoHighlight> <false /> </autoHighlight>
  666.         <sharedHighlight> <true /> </sharedHighlight>
  667.         <family>0</family>
  668.         <titleWidth>0</titleWidth>
  669.         <icon>0</icon>
  670.         <textAlign>center</textAlign>
  671.         <font>Chicago</font>
  672.         <textSize>12</textSize>
  673.         <textStyle>plain</textStyle>
  674.         <name></name>
  675.         <script>on mouseDownsimulScroll2 theFields()end mouseDown</script>
  676.     </part>
  677.     <part>
  678.         <id>79</id>
  679.         <type>button</type>
  680.         <visible> <true /> </visible>
  681.         <reserved5> 0 </reserved5>
  682.         <reserved4> 0 </reserved4>
  683.         <reserved3> 0 </reserved3>
  684.         <reserved2> 0 </reserved2>
  685.         <reserved1> 0 </reserved1>
  686.         <enabled> <true /> </enabled>
  687.         <rect>
  688.             <left>435</left>
  689.             <top>286</top>
  690.             <right>470</right>
  691.             <bottom>320</bottom>
  692.         </rect>
  693.         <style>transparent</style>
  694.         <showName> <false /> </showName>
  695.         <highlight> <false /> </highlight>
  696.         <autoHighlight> <false /> </autoHighlight>
  697.         <sharedHighlight> <true /> </sharedHighlight>
  698.         <family>0</family>
  699.         <titleWidth>0</titleWidth>
  700.         <icon>31685</icon>
  701.         <textAlign>center</textAlign>
  702.         <font>Chicago</font>
  703.         <textSize>12</textSize>
  704.         <textStyle>plain</textStyle>
  705.         <name>Help</name>
  706.         <script>on mouseUppush card -- remember where we came from.visual iris opengo card "Help Tallies 1"end mouseUp</script>
  707.     </part>
  708.     <part>
  709.         <id>81</id>
  710.         <type>field</type>
  711.         <visible> <true /> </visible>
  712.         <dontWrap> <false /> </dontWrap>
  713.         <dontSearch> <false /> </dontSearch>
  714.         <sharedText> <true /> </sharedText>
  715.         <fixedLineHeight> <true /> </fixedLineHeight>
  716.         <autoTab> <false /> </autoTab>
  717.         <lockText> <true /> </lockText>
  718.         <rect>
  719.             <left>385</left>
  720.             <top>308</top>
  721.             <right>432</right>
  722.             <bottom>323</bottom>
  723.         </rect>
  724.         <style>transparent</style>
  725.         <autoSelect> <false /> </autoSelect>
  726.         <showLines> <false /> </showLines>
  727.         <wideMargins> <false /> </wideMargins>
  728.         <multipleLines> <false /> </multipleLines>
  729.         <reservedFamily> 0 </reservedFamily>
  730.         <titleWidth>0</titleWidth>
  731.         <icon>0</icon>
  732.         <textAlign>center</textAlign>
  733.         <font>Palatino</font>
  734.         <textSize>10</textSize>
  735.         <textStyle>plain</textStyle>
  736.         <textHeight>12</textHeight>
  737.         <name>Section Navigation</name>
  738.         <script></script>
  739.     </part>
  740.     <part>
  741.         <id>82</id>
  742.         <type>field</type>
  743.         <visible> <true /> </visible>
  744.         <dontWrap> <false /> </dontWrap>
  745.         <dontSearch> <false /> </dontSearch>
  746.         <sharedText> <true /> </sharedText>
  747.         <fixedLineHeight> <true /> </fixedLineHeight>
  748.         <autoTab> <false /> </autoTab>
  749.         <lockText> <true /> </lockText>
  750.         <rect>
  751.             <left>335</left>
  752.             <top>308</top>
  753.             <right>388</right>
  754.             <bottom>323</bottom>
  755.         </rect>
  756.         <style>transparent</style>
  757.         <autoSelect> <false /> </autoSelect>
  758.         <showLines> <false /> </showLines>
  759.         <wideMargins> <false /> </wideMargins>
  760.         <multipleLines> <false /> </multipleLines>
  761.         <reservedFamily> 0 </reservedFamily>
  762.         <titleWidth>0</titleWidth>
  763.         <icon>0</icon>
  764.         <textAlign>center</textAlign>
  765.         <font>Palatino</font>
  766.         <textSize>10</textSize>
  767.         <textStyle>plain</textStyle>
  768.         <textHeight>12</textHeight>
  769.         <name>Workout Navigation</name>
  770.         <script></script>
  771.     </part>
  772.     <part>
  773.         <id>83</id>
  774.         <type>button</type>
  775.         <visible> <true /> </visible>
  776.         <reserved5> 0 </reserved5>
  777.         <reserved4> 0 </reserved4>
  778.         <reserved3> 0 </reserved3>
  779.         <reserved2> 0 </reserved2>
  780.         <reserved1> 0 </reserved1>
  781.         <enabled> <true /> </enabled>
  782.         <rect>
  783.             <left>408</left>
  784.             <top>288</top>
  785.             <right>428</right>
  786.             <bottom>310</bottom>
  787.         </rect>
  788.         <style>transparent</style>
  789.         <showName> <false /> </showName>
  790.         <highlight> <false /> </highlight>
  791.         <autoHighlight> <true /> </autoHighlight>
  792.         <sharedHighlight> <true /> </sharedHighlight>
  793.         <family>0</family>
  794.         <titleWidth>0</titleWidth>
  795.         <icon>8419</icon>
  796.         <textAlign>center</textAlign>
  797.         <font>Chicago</font>
  798.         <textSize>12</textSize>
  799.         <textStyle>plain</textStyle>
  800.         <name>Next Section</name>
  801.         <script>on mouseUpvisual effect scroll leftgo card "Global Info"end mouseUp</script>
  802.     </part>
  803.     <part>
  804.         <id>84</id>
  805.         <type>button</type>
  806.         <visible> <true /> </visible>
  807.         <reserved5> 0 </reserved5>
  808.         <reserved4> 0 </reserved4>
  809.         <reserved3> 0 </reserved3>
  810.         <reserved2> 0 </reserved2>
  811.         <reserved1> 0 </reserved1>
  812.         <enabled> <true /> </enabled>
  813.         <rect>
  814.             <left>388</left>
  815.             <top>288</top>
  816.             <right>409</right>
  817.             <bottom>310</bottom>
  818.         </rect>
  819.         <style>transparent</style>
  820.         <showName> <false /> </showName>
  821.         <highlight> <false /> </highlight>
  822.         <autoHighlight> <true /> </autoHighlight>
  823.         <sharedHighlight> <true /> </sharedHighlight>
  824.         <family>0</family>
  825.         <titleWidth>0</titleWidth>
  826.         <icon>17779</icon>
  827.         <textAlign>center</textAlign>
  828.         <font>Chicago</font>
  829.         <textSize>12</textSize>
  830.         <textStyle>plain</textStyle>
  831.         <name>Prev Section</name>
  832.         <script>on mouseUpvisual effect scroll rightgo card 1 of bkgnd "Weekly Log"end mouseUp</script>
  833.     </part>
  834.     <part>
  835.         <id>85</id>
  836.         <type>button</type>
  837.         <visible> <true /> </visible>
  838.         <reserved5> 0 </reserved5>
  839.         <reserved4> 0 </reserved4>
  840.         <reserved3> 0 </reserved3>
  841.         <reserved2> 0 </reserved2>
  842.         <reserved1> 0 </reserved1>
  843.         <enabled> <true /> </enabled>
  844.         <rect>
  845.             <left>361</left>
  846.             <top>288</top>
  847.             <right>381</right>
  848.             <bottom>310</bottom>
  849.         </rect>
  850.         <style>transparent</style>
  851.         <showName> <false /> </showName>
  852.         <highlight> <false /> </highlight>
  853.         <autoHighlight> <true /> </autoHighlight>
  854.         <sharedHighlight> <true /> </sharedHighlight>
  855.         <family>0</family>
  856.         <titleWidth>0</titleWidth>
  857.         <icon>1013</icon>
  858.         <textAlign>center</textAlign>
  859.         <font>Chicago</font>
  860.         <textSize>12</textSize>
  861.         <textStyle>plain</textStyle>
  862.         <name>Next Day</name>
  863.         <script>on mouseUpif the ID of this card <> (the ID of last card of this bkgnd) thenif the commandKey is down then -- go to last card in this sectionvisual effect wipe left to blackvisual effect wipe left to cardgo last card of this bkgndelse -- just go to next cardvisual effect wipe leftgo nextend ifend ifend mouseUp</script>
  864.     </part>
  865.     <part>
  866.         <id>86</id>
  867.         <type>button</type>
  868.         <visible> <true /> </visible>
  869.         <reserved5> 0 </reserved5>
  870.         <reserved4> 0 </reserved4>
  871.         <reserved3> 0 </reserved3>
  872.         <reserved2> 0 </reserved2>
  873.         <reserved1> 0 </reserved1>
  874.         <enabled> <true /> </enabled>
  875.         <rect>
  876.             <left>341</left>
  877.             <top>288</top>
  878.             <right>362</right>
  879.             <bottom>310</bottom>
  880.         </rect>
  881.         <style>transparent</style>
  882.         <showName> <false /> </showName>
  883.         <highlight> <false /> </highlight>
  884.         <autoHighlight> <true /> </autoHighlight>
  885.         <sharedHighlight> <true /> </sharedHighlight>
  886.         <family>0</family>
  887.         <titleWidth>0</titleWidth>
  888.         <icon>1014</icon>
  889.         <textAlign>center</textAlign>
  890.         <font>Chicago</font>
  891.         <textSize>12</textSize>
  892.         <textStyle>plain</textStyle>
  893.         <name>Prev Day</name>
  894.         <script>on mouseUpif the ID of this cd <> the ID of cd 1 of this bg thenif the commandKey is down then -- go to first card in this sectionvisual effect wipe right to blackvisual effect wipe right to cardgo first card of this bkgndelse -- just go to previous cardvisual effect wipe rightgo prevend ifend ifend mouseUp</script>
  895.     </part>
  896.     <part>
  897.         <id>89</id>
  898.         <type>field</type>
  899.         <visible> <true /> </visible>
  900.         <dontWrap> <false /> </dontWrap>
  901.         <dontSearch> <false /> </dontSearch>
  902.         <sharedText> <false /> </sharedText>
  903.         <fixedLineHeight> <false /> </fixedLineHeight>
  904.         <autoTab> <false /> </autoTab>
  905.         <lockText> <true /> </lockText>
  906.         <rect>
  907.             <left>102</left>
  908.             <top>46</top>
  909.             <right>207</right>
  910.             <bottom>61</bottom>
  911.         </rect>
  912.         <style>rectangle</style>
  913.         <autoSelect> <false /> </autoSelect>
  914.         <showLines> <false /> </showLines>
  915.         <wideMargins> <false /> </wideMargins>
  916.         <multipleLines> <false /> </multipleLines>
  917.         <reservedFamily> 0 </reservedFamily>
  918.         <titleWidth>0</titleWidth>
  919.         <icon>0</icon>
  920.         <textAlign>left</textAlign>
  921.         <font>Palatino</font>
  922.         <textSize>10</textSize>
  923.         <textStyle>plain</textStyle>
  924.         <textHeight>13</textHeight>
  925.         <name>Effort</name>
  926.         <script>on mouseUpask "Enter effort levels, separated by commas:" with meif it is empty then exit mouseUpelse put it into meend mouseUp</script>
  927.     </part>
  928.     <part>
  929.         <id>92</id>
  930.         <type>field</type>
  931.         <visible> <true /> </visible>
  932.         <dontWrap> <true /> </dontWrap>
  933.         <dontSearch> <false /> </dontSearch>
  934.         <sharedText> <false /> </sharedText>
  935.         <fixedLineHeight> <false /> </fixedLineHeight>
  936.         <autoTab> <false /> </autoTab>
  937.         <lockText> <true /> </lockText>
  938.         <rect>
  939.             <left>107</left>
  940.             <top>288</top>
  941.             <right>141</right>
  942.             <bottom>301</bottom>
  943.         </rect>
  944.         <style>rectangle</style>
  945.         <autoSelect> <false /> </autoSelect>
  946.         <showLines> <false /> </showLines>
  947.         <wideMargins> <false /> </wideMargins>
  948.         <multipleLines> <false /> </multipleLines>
  949.         <reservedFamily> 0 </reservedFamily>
  950.         <titleWidth>0</titleWidth>
  951.         <icon>0</icon>
  952.         <textAlign>center</textAlign>
  953.         <font>Times</font>
  954.         <textSize>9</textSize>
  955.         <textStyle>plain</textStyle>
  956.         <textHeight>12</textHeight>
  957.         <name>DistUnit</name>
  958.         <script>-- Change distance unit, if necessary converting data already entered.on mouseUpput me into fromUnitif fromUnit = "miles" thenput "yards" into toUnitelse if fromUnit = "yards" thenput "km." into toUnitelse if fromUnit = "km." thenput "meters" into toUnitelse put "miles" into toUnitput toUnit into meif the optionKey is up thenset cursor to busy-- do conversions as necessaryput convertDistances (fromUnit,toUnit,bkgnd field "Distance")¬¨into bkgnd field "Distance"-- check if need to update cumulative distances tooif bkgnd field "Choice1Name" = "Cum Dist" thenput convertDistances (fromUnit,toUnit,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif bkgnd field "Choice2Name" = "Cum Dist" thenput convertDistances (fromUnit,toUnit,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of distances (one per line)function convertDistances fromUnit,toUnit,distListrepeat with x = 1 to the number of lines of distListif line x of distList <> space thenput convertDistance (fromUnit,toUnit,line x of distList)¬¨into line x of distListend ifend repeatreturn distListend convertDistances</script>
  959.     </part>
  960.     <part>
  961.         <id>93</id>
  962.         <type>field</type>
  963.         <visible> <true /> </visible>
  964.         <dontWrap> <true /> </dontWrap>
  965.         <dontSearch> <false /> </dontSearch>
  966.         <sharedText> <false /> </sharedText>
  967.         <fixedLineHeight> <false /> </fixedLineHeight>
  968.         <autoTab> <false /> </autoTab>
  969.         <lockText> <true /> </lockText>
  970.         <rect>
  971.             <left>107</left>
  972.             <top>300</top>
  973.             <right>141</right>
  974.             <bottom>313</bottom>
  975.         </rect>
  976.         <style>rectangle</style>
  977.         <autoSelect> <false /> </autoSelect>
  978.         <showLines> <false /> </showLines>
  979.         <wideMargins> <false /> </wideMargins>
  980.         <multipleLines> <false /> </multipleLines>
  981.         <reservedFamily> 0 </reservedFamily>
  982.         <titleWidth>0</titleWidth>
  983.         <icon>0</icon>
  984.         <textAlign>center</textAlign>
  985.         <font>Times</font>
  986.         <textSize>9</textSize>
  987.         <textStyle>plain</textStyle>
  988.         <textHeight>12</textHeight>
  989.         <name>TimeUnit</name>
  990.         <script>-- Change time unit, if necessary converting data already entered.on mouseUpput me into fromUnitif oldUnit = "minutes" thenput "hours" into toUnitelse put "minutes" into toUnitput toUnit into meif the optionKey is up thenset cursor to busy-- do conversions as necessaryput convertTimes (fromUnit,toUnit,bkgnd field "Time")¬¨into bkgnd field "Time"-- check if need to update cumulative distances tooif bkgnd field "Choice1Name" = "Cum Time" thenput convertTimes (fromUnit,toUnit,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif bkgnd field "Choice2Name" = "Cum Time" thenput convertTimes (fromUnit,toUnit,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of times (one per line)function convertTimes fromUnit,toUnit,timeListrepeat with x = 1 to the number of lines of timeListif line x of timeList <> space thenput makeNiceTime(toUnit,getSeconds(fromUnit,line x of timeList))¬¨into line x of timeListend ifend repeatreturn timeListend convertTimes</script>
  991.     </part>
  992.     <part>
  993.         <id>95</id>
  994.         <type>field</type>
  995.         <visible> <true /> </visible>
  996.         <dontWrap> <true /> </dontWrap>
  997.         <dontSearch> <false /> </dontSearch>
  998.         <sharedText> <false /> </sharedText>
  999.         <fixedLineHeight> <false /> </fixedLineHeight>
  1000.         <autoTab> <false /> </autoTab>
  1001.         <lockText> <true /> </lockText>
  1002.         <rect>
  1003.             <left>183</left>
  1004.             <top>288</top>
  1005.             <right>217</right>
  1006.             <bottom>301</bottom>
  1007.         </rect>
  1008.         <style>rectangle</style>
  1009.         <autoSelect> <false /> </autoSelect>
  1010.         <showLines> <false /> </showLines>
  1011.         <wideMargins> <false /> </wideMargins>
  1012.         <multipleLines> <false /> </multipleLines>
  1013.         <reservedFamily> 0 </reservedFamily>
  1014.         <titleWidth>0</titleWidth>
  1015.         <icon>0</icon>
  1016.         <textAlign>center</textAlign>
  1017.         <font>Times</font>
  1018.         <textSize>9</textSize>
  1019.         <textStyle>plain</textStyle>
  1020.         <textHeight>12</textHeight>
  1021.         <name>PaceUnit</name>
  1022.         <script>-- Change pace unit, if necessary converting data already entered.on mouseUpput me into fromUnitif fromUnit = "min/m." thenput "m/hr." into toUnitelse if fromUnit = "m/hr." thenput "min/km." into toUnitelse if fromUnit = "min/km." thenput "km/hr." into toUnitelse put "min/m." into toUnitput toUnit into meif the optionKey is up thenset cursor to busy-- do conversions as necessary in the choice-field(s) labeled "Pace"if line 2 of bkgnd field "Choice1Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif line 2 of bkgnd field "Choice2Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of paces (one per line)function convertPaces fromUnit,toUnit,paceListrepeat with x = 1 to the number of lines of paceListif line x of paceList <> space thenput convertPace (fromUnit,toUnit,line x of paceList)¬¨into line x of paceListend ifend repeatreturn paceListend convertPaces</script>
  1023.     </part>
  1024.     <part>
  1025.         <id>96</id>
  1026.         <type>field</type>
  1027.         <visible> <true /> </visible>
  1028.         <dontWrap> <true /> </dontWrap>
  1029.         <dontSearch> <false /> </dontSearch>
  1030.         <sharedText> <false /> </sharedText>
  1031.         <fixedLineHeight> <false /> </fixedLineHeight>
  1032.         <autoTab> <false /> </autoTab>
  1033.         <lockText> <true /> </lockText>
  1034.         <rect>
  1035.             <left>183</left>
  1036.             <top>300</top>
  1037.             <right>217</right>
  1038.             <bottom>313</bottom>
  1039.         </rect>
  1040.         <style>rectangle</style>
  1041.         <autoSelect> <false /> </autoSelect>
  1042.         <showLines> <false /> </showLines>
  1043.         <wideMargins> <false /> </wideMargins>
  1044.         <multipleLines> <false /> </multipleLines>
  1045.         <reservedFamily> 0 </reservedFamily>
  1046.         <titleWidth>0</titleWidth>
  1047.         <icon>0</icon>
  1048.         <textAlign>center</textAlign>
  1049.         <font>Times</font>
  1050.         <textSize>9</textSize>
  1051.         <textStyle>plain</textStyle>
  1052.         <textHeight>12</textHeight>
  1053.         <name>WeightUnit</name>
  1054.         <script>-- Change the weight unit, and convert any weight data, as appropriateon mouseUpif me = "lbs." thenput "kg." into meelse put "lbs." into meif the optionKey is up thenset cursor to busy-- do conversions as necessary in the choice-field(s) labeled "Wght"if line 2 of bkgnd field "Choice1Name" = "Wght" thenput convertWeights (me,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif line 2 of bkgnd field "Choice2Name" = "Wght" thenput convertWeights (me,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of weights (one per line)function convertWeights newUnit,weightListif weightList is empty then return emptyif newUnit = "kg." thenput (1/2.2046244) into conversionFactorelse put 2.2046244 into conversionFactorrepeat with x = 1 to the number of lines of weightListif line x of weightList <> space thenput (line x of weightList * conversionFactor)¬¨into line x of weightListend ifend repeatreturn weightListend convertWeights</script>
  1055.     </part>
  1056.     <part>
  1057.         <id>97</id>
  1058.         <type>field</type>
  1059.         <visible> <false /> </visible>
  1060.         <dontWrap> <false /> </dontWrap>
  1061.         <dontSearch> <false /> </dontSearch>
  1062.         <sharedText> <false /> </sharedText>
  1063.         <fixedLineHeight> <false /> </fixedLineHeight>
  1064.         <autoTab> <false /> </autoTab>
  1065.         <lockText> <true /> </lockText>
  1066.         <rect>
  1067.             <left>102</left>
  1068.             <top>16</top>
  1069.             <right>224</right>
  1070.             <bottom>47</bottom>
  1071.         </rect>
  1072.         <style>scrolling</style>
  1073.         <autoSelect> <false /> </autoSelect>
  1074.         <showLines> <false /> </showLines>
  1075.         <wideMargins> <false /> </wideMargins>
  1076.         <multipleLines> <false /> </multipleLines>
  1077.         <reservedFamily> 0 </reservedFamily>
  1078.         <titleWidth>0</titleWidth>
  1079.         <icon>0</icon>
  1080.         <textAlign>left</textAlign>
  1081.         <font>Palatino</font>
  1082.         <textSize>10</textSize>
  1083.         <textStyle>plain</textStyle>
  1084.         <textHeight>13</textHeight>
  1085.         <name>CurrentSelections</name>
  1086.         <script></script>
  1087.     </part>
  1088.     <part>
  1089.         <id>100</id>
  1090.         <type>field</type>
  1091.         <visible> <false /> </visible>
  1092.         <dontWrap> <true /> </dontWrap>
  1093.         <dontSearch> <false /> </dontSearch>
  1094.         <sharedText> <true /> </sharedText>
  1095.         <fixedLineHeight> <false /> </fixedLineHeight>
  1096.         <autoTab> <false /> </autoTab>
  1097.         <lockText> <true /> </lockText>
  1098.         <rect>
  1099.             <left>393</left>
  1100.             <top>41</top>
  1101.             <right>484</right>
  1102.             <bottom>158</bottom>
  1103.         </rect>
  1104.         <style>rectangle</style>
  1105.         <autoSelect> <false /> </autoSelect>
  1106.         <showLines> <false /> </showLines>
  1107.         <wideMargins> <true /> </wideMargins>
  1108.         <multipleLines> <false /> </multipleLines>
  1109.         <reservedFamily> 0 </reservedFamily>
  1110.         <titleWidth>0</titleWidth>
  1111.         <icon>0</icon>
  1112.         <textAlign>left</textAlign>
  1113.         <font>Palatino</font>
  1114.         <textSize>12</textSize>
  1115.         <textStyle>plain</textStyle>
  1116.         <textHeight>16</textHeight>
  1117.         <name>TallyMenu</name>
  1118.         <script></script>
  1119.     </part>
  1120.     <part>
  1121.         <id>101</id>
  1122.         <type>field</type>
  1123.         <visible> <true /> </visible>
  1124.         <dontWrap> <true /> </dontWrap>
  1125.         <dontSearch> <false /> </dontSearch>
  1126.         <sharedText> <true /> </sharedText>
  1127.         <fixedLineHeight> <false /> </fixedLineHeight>
  1128.         <autoTab> <false /> </autoTab>
  1129.         <lockText> <true /> </lockText>
  1130.         <rect>
  1131.             <left>393</left>
  1132.             <top>21</top>
  1133.             <right>484</right>
  1134.             <bottom>42</bottom>
  1135.         </rect>
  1136.         <style>transparent</style>
  1137.         <autoSelect> <false /> </autoSelect>
  1138.         <showLines> <false /> </showLines>
  1139.         <wideMargins> <true /> </wideMargins>
  1140.         <multipleLines> <false /> </multipleLines>
  1141.         <reservedFamily> 0 </reservedFamily>
  1142.         <titleWidth>0</titleWidth>
  1143.         <icon>0</icon>
  1144.         <textAlign>left</textAlign>
  1145.         <font>Palatino</font>
  1146.         <textSize>12</textSize>
  1147.         <textStyle>bold</textStyle>
  1148.         <textHeight>16</textHeight>
  1149.         <name>MenuTitle</name>
  1150.         <script>on mouseDownglobal scriptCallerput bkgnd field "TallyMenu" into MenuOptionsput item 1 of fullHPop (MenuOptions,"394,42",0) into theOptionif theOption is empty then exit mouseDownelse if theOption = "Add Card" thenset cursor to busyput true into scriptCallerdoMenu "Copy Card"doMenu "Paste Card"clearTally -- stack scriptput false into scriptCallerelse if theOption = "Delete Card" then-- Remove card if user really wants toif the number of cards of this bkgnd > 1 thenanswer "Are you sure you want to delete this tally card," &&¬¨"and not just clear it instead?"¬¨with "Delete" or "Clear" or "Cancel"if it = "Cancel" then exit mouseDownelse if it = "Clear" then clearTallyelseput true into scriptCallerdoMenu "Delete Card"if the short name of this bkgnd is not "Tallies" thengo prev -- go back into tally sectionend ifput false into scriptCallerend ifelse answer "You cannot delete the last tally card." &&¬¨"Clear it out instead?" with "Clear" or "Cancel"if it = "Clear" thenclearTallyend ifelse if theOption = "Clear Tally" thenclearTallyelse if theOption = "Compile Tally" thencompileTally "ask"else if theOption = "Update Tally" then-- without changing tally filter, update the tally to include-- any workouts added since last tally was compiledsend "updateFrom" to bkgnd field "From"put the short date into bkgnd field "To"compileTally "append"else if theOption = "Export Data" thenexportData -- bkgnd scriptend ifend mouseDown</script>
  1151.     </part>
  1152.     <part>
  1153.         <id>102</id>
  1154.         <type>button</type>
  1155.         <visible> <true /> </visible>
  1156.         <reserved5> 0 </reserved5>
  1157.         <reserved4> 0 </reserved4>
  1158.         <reserved3> 0 </reserved3>
  1159.         <reserved2> 0 </reserved2>
  1160.         <reserved1> 0 </reserved1>
  1161.         <enabled> <true /> </enabled>
  1162.         <rect>
  1163.             <left>466</left>
  1164.             <top>22</top>
  1165.             <right>484</right>
  1166.             <bottom>42</bottom>
  1167.         </rect>
  1168.         <style>transparent</style>
  1169.         <showName> <false /> </showName>
  1170.         <highlight> <false /> </highlight>
  1171.         <autoHighlight> <false /> </autoHighlight>
  1172.         <sharedHighlight> <true /> </sharedHighlight>
  1173.         <family>0</family>
  1174.         <titleWidth>0</titleWidth>
  1175.         <icon>31383</icon>
  1176.         <textAlign>center</textAlign>
  1177.         <font>PD@=@Àá√∑</font>
  1178.         <textSize>12</textSize>
  1179.         <textStyle>plain</textStyle>
  1180.         <name>MenuArrow</name>
  1181.         <script>on mouseDownsend mouseDown to bkgnd field "MenuTitle"end mouseDown</script>
  1182.     </part>
  1183.     <part>
  1184.         <id>43</id>
  1185.         <type>field</type>
  1186.         <visible> <false /> </visible>
  1187.         <dontWrap> <true /> </dontWrap>
  1188.         <dontSearch> <false /> </dontSearch>
  1189.         <sharedText> <false /> </sharedText>
  1190.         <fixedLineHeight> <true /> </fixedLineHeight>
  1191.         <autoTab> <false /> </autoTab>
  1192.         <lockText> <true /> </lockText>
  1193.         <rect>
  1194.             <left>335</left>
  1195.             <top>82</top>
  1196.             <right>484</right>
  1197.             <bottom>283</bottom>
  1198.         </rect>
  1199.         <style>scrolling</style>
  1200.         <autoSelect> <false /> </autoSelect>
  1201.         <showLines> <false /> </showLines>
  1202.         <wideMargins> <false /> </wideMargins>
  1203.         <multipleLines> <false /> </multipleLines>
  1204.         <reservedFamily> 0 </reservedFamily>
  1205.         <titleWidth>0</titleWidth>
  1206.         <icon>0</icon>
  1207.         <textAlign>left</textAlign>
  1208.         <font>Times</font>
  1209.         <textSize>9</textSize>
  1210.         <textStyle>plain</textStyle>
  1211.         <textHeight>11</textHeight>
  1212.         <name>Comments</name>
  1213.         <script>on mouseUpjumpToWorkout clickLine()end mouseUp</script>
  1214.     </part>
  1215.     <part>
  1216.         <id>104</id>
  1217.         <type>field</type>
  1218.         <visible> <true /> </visible>
  1219.         <dontWrap> <true /> </dontWrap>
  1220.         <dontSearch> <false /> </dontSearch>
  1221.         <sharedText> <true /> </sharedText>
  1222.         <fixedLineHeight> <false /> </fixedLineHeight>
  1223.         <autoTab> <false /> </autoTab>
  1224.         <lockText> <true /> </lockText>
  1225.         <rect>
  1226.             <left>270</left>
  1227.             <top>69</top>
  1228.             <right>336</right>
  1229.             <bottom>83</bottom>
  1230.         </rect>
  1231.         <style>rectangle</style>
  1232.         <autoSelect> <false /> </autoSelect>
  1233.         <showLines> <false /> </showLines>
  1234.         <wideMargins> <false /> </wideMargins>
  1235.         <multipleLines> <false /> </multipleLines>
  1236.         <reservedFamily> 0 </reservedFamily>
  1237.         <titleWidth>0</titleWidth>
  1238.         <icon>0</icon>
  1239.         <textAlign>center</textAlign>
  1240.         <font>Times</font>
  1241.         <textSize>9</textSize>
  1242.         <textStyle>bold</textStyle>
  1243.         <textHeight>12</textHeight>
  1244.         <name>CommentButton</name>
  1245.         <script>on mouseUpif me = "Comments‚Ķ" thenshow bkgnd field "Comments"show bkgnd field "CommentCover"put "Hide" into meelse -- me = "Hide"hide bkgnd field "Comments"hide bkgnd field "CommentCover"put "Comments‚Ķ" into meend ifend mouseUp</script>
  1246.     </part>
  1247.     <part>
  1248.         <id>105</id>
  1249.         <type>field</type>
  1250.         <visible> <false /> </visible>
  1251.         <dontWrap> <false /> </dontWrap>
  1252.         <dontSearch> <false /> </dontSearch>
  1253.         <sharedText> <true /> </sharedText>
  1254.         <fixedLineHeight> <false /> </fixedLineHeight>
  1255.         <autoTab> <false /> </autoTab>
  1256.         <lockText> <true /> </lockText>
  1257.         <rect>
  1258.             <left>336</left>
  1259.             <top>58</top>
  1260.             <right>474</right>
  1261.             <bottom>82</bottom>
  1262.         </rect>
  1263.         <style>opaque</style>
  1264.         <autoSelect> <false /> </autoSelect>
  1265.         <showLines> <false /> </showLines>
  1266.         <wideMargins> <false /> </wideMargins>
  1267.         <multipleLines> <false /> </multipleLines>
  1268.         <reservedFamily> 0 </reservedFamily>
  1269.         <titleWidth>0</titleWidth>
  1270.         <icon>0</icon>
  1271.         <textAlign>left</textAlign>
  1272.         <font>Times</font>
  1273.         <textSize>9</textSize>
  1274.         <textStyle>bold</textStyle>
  1275.         <textHeight>12</textHeight>
  1276.         <name>CommentCover</name>
  1277.         <script></script>
  1278.     </part>
  1279.     <part>
  1280.         <id>110</id>
  1281.         <type>field</type>
  1282.         <visible> <true /> </visible>
  1283.         <dontWrap> <true /> </dontWrap>
  1284.         <dontSearch> <false /> </dontSearch>
  1285.         <sharedText> <false /> </sharedText>
  1286.         <fixedLineHeight> <true /> </fixedLineHeight>
  1287.         <autoTab> <false /> </autoTab>
  1288.         <lockText> <false /> </lockText>
  1289.         <rect>
  1290.             <left>234</left>
  1291.             <top>299</top>
  1292.             <right>261</right>
  1293.             <bottom>313</bottom>
  1294.         </rect>
  1295.         <style>transparent</style>
  1296.         <autoSelect> <false /> </autoSelect>
  1297.         <showLines> <true /> </showLines>
  1298.         <wideMargins> <false /> </wideMargins>
  1299.         <multipleLines> <false /> </multipleLines>
  1300.         <reservedFamily> 0 </reservedFamily>
  1301.         <titleWidth>0</titleWidth>
  1302.         <icon>0</icon>
  1303.         <textAlign>center</textAlign>
  1304.         <font>Times</font>
  1305.         <textSize>9</textSize>
  1306.         <textStyle>plain</textStyle>
  1307.         <textHeight>12</textHeight>
  1308.         <name>Carry1</name>
  1309.         <script>-- Change pace unit, if necessary converting data already entered.on mouseUpput me into fromUnitif fromUnit = "min/m." thenput "m/hr." into toUnitelse if fromUnit = "m/hr." thenput "min/km." into toUnitelse if fromUnit = "min/km." thenput "km/hr." into toUnitelse put "min/m." into toUnitput toUnit into meif the optionKey is up thenset cursor to busy-- do conversions as necessary in the choice-field(s) labeled "Pace"if line 2 of bkgnd field "Choice1Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif line 2 of bkgnd field "Choice2Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of paces (one per line)function convertPaces fromUnit,toUnit,paceListrepeat with x = 1 to the number of lines of paceListif line x of paceList <> space thenput convertPace (fromUnit,toUnit,line x of paceList)¬¨into line x of paceListend ifend repeatreturn paceListend convertPaces</script>
  1310.     </part>
  1311.     <part>
  1312.         <id>111</id>
  1313.         <type>field</type>
  1314.         <visible> <true /> </visible>
  1315.         <dontWrap> <true /> </dontWrap>
  1316.         <dontSearch> <false /> </dontSearch>
  1317.         <sharedText> <false /> </sharedText>
  1318.         <fixedLineHeight> <true /> </fixedLineHeight>
  1319.         <autoTab> <false /> </autoTab>
  1320.         <lockText> <false /> </lockText>
  1321.         <rect>
  1322.             <left>265</left>
  1323.             <top>299</top>
  1324.             <right>292</right>
  1325.             <bottom>313</bottom>
  1326.         </rect>
  1327.         <style>transparent</style>
  1328.         <autoSelect> <false /> </autoSelect>
  1329.         <showLines> <true /> </showLines>
  1330.         <wideMargins> <false /> </wideMargins>
  1331.         <multipleLines> <false /> </multipleLines>
  1332.         <reservedFamily> 0 </reservedFamily>
  1333.         <titleWidth>0</titleWidth>
  1334.         <icon>0</icon>
  1335.         <textAlign>center</textAlign>
  1336.         <font>Times</font>
  1337.         <textSize>9</textSize>
  1338.         <textStyle>plain</textStyle>
  1339.         <textHeight>12</textHeight>
  1340.         <name>Carry2</name>
  1341.         <script>-- Change pace unit, if necessary converting data already entered.on mouseUpput me into fromUnitif fromUnit = "min/m." thenput "m/hr." into toUnitelse if fromUnit = "m/hr." thenput "min/km." into toUnitelse if fromUnit = "min/km." thenput "km/hr." into toUnitelse put "min/m." into toUnitput toUnit into meif the optionKey is up thenset cursor to busy-- do conversions as necessary in the choice-field(s) labeled "Pace"if line 2 of bkgnd field "Choice1Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice1")¬¨into bkgnd field "Choice1"end ifif line 2 of bkgnd field "Choice2Name" = "Pace" thenput convertPaces (fromUnit,toUnit,bkgnd field "Choice2")¬¨into bkgnd field "Choice2"end ifend ifend mouseUp-- Convert a list of paces (one per line)function convertPaces fromUnit,toUnit,paceListrepeat with x = 1 to the number of lines of paceListif line x of paceList <> space thenput convertPace (fromUnit,toUnit,line x of paceList)¬¨into line x of paceListend ifend repeatreturn paceListend convertPaces</script>
  1342.     </part>
  1343.     <content>
  1344.         <layer>background</layer>
  1345.         <id>47</id>
  1346.         <text>Cum Time</text>
  1347.     </content>
  1348.     <content>
  1349.         <layer>background</layer>
  1350.         <id>48</id>
  1351.         <text>Ave Pace</text>
  1352.     </content>
  1353.     <content>
  1354.         <layer>background</layer>
  1355.         <id>36</id>
  1356.         <text>Workouts:</text>
  1357.     </content>
  1358.     <content>
  1359.         <layer>background</layer>
  1360.         <id>81</id>
  1361.         <text><span class="style1">ections</span><span class="style3"></span></text>
  1362.     </content>
  1363.     <content>
  1364.         <layer>background</layer>
  1365.         <id>82</id>
  1366.         <text>Tallies</text>
  1367.     </content>
  1368.     <content>
  1369.         <layer>background</layer>
  1370.         <id>51</id>
  1371.         <text>Current selections...</text>
  1372.     </content>
  1373.     <content>
  1374.         <layer>background</layer>
  1375.         <id>100</id>
  1376.         <text>Add CardDelete Card(--Clear TallyCompile TallyUpdate Tally(--Export Data</text>
  1377.     </content>
  1378.     <content>
  1379.         <layer>background</layer>
  1380.         <id>101</id>
  1381.         <text>Tally Menu</text>
  1382.     </content>
  1383.     <content>
  1384.         <layer>background</layer>
  1385.         <id>104</id>
  1386.         <text>Comments‚Ķ</text>
  1387.     </content>
  1388.     <content>
  1389.         <layer>background</layer>
  1390.         <id>105</id>
  1391.         <text>Comments</text>
  1392.     </content>
  1393.     <name>Tallies</name>
  1394.     <script>-- Hidden fields on this background:-- CurrentSelections, TallyMenu, Comments, CommentCover-- Make sure card looks right when we get thereon openCardif bkgnd field "CommentButton" = "Hide" thensend mouseUp to bkgnd field "CommentButton"end ifif bkgnd field "Date" is empty thenset the style of bkgnd field "Choice1Name" to "shadow"set the style of bkgnd field "Choice1Name" to "shadow"elseset the style of bkgnd field "Choice1Name" to "transparent"set the style of bkgnd field "Choice1Name" to "transparent"end ifend openCard-- Pre-fill the efforts field with all possible effort values,-- to make the desired format clearon newCardglobal allEffortsput empty into numListrepeat with x = 1 to the number of items of allEffortsput char 1 to offset(" ",item x of allEfforts)-1¬¨of item x of allEfforts & "," after numListend repeatdelete last char of numListput numList into bkgnd field "Effort"end newCard-- Compile all workouts of the types selected with the popup menus-- for sports & workout types or specific equipment,-- with the effort level(s), and within the date range specified.on compileTally whatglobal allSports-- check if any data already in fieldsif what = "ask" thenif bkgnd field "Date" is not empty thenanswer "Replace or append to existing tally data?"¬¨with "Replace" or "Append" or "Cancel"if it is "Cancel" thenexit compileTallyelse if it is "Replace" then-- Clear out all columnsput empty into bkgnd field "Date"put empty into bkgnd field "SportColumn"put empty into bkgnd field "TypeColumn"put empty into bkgnd field "EffortColumn"put empty into bkgnd field "Workout"put empty into bkgnd field "Distance"put empty into bkgnd field "Time"put empty into bkgnd field "Comments"put empty into bkgnd field "Choice1"put empty into bkgnd field "Choice2"put 0 into lineNrelse put the number of lines of bkgnd field "Date" into lineNrelse put 0 into lineNrelse put the number of lines of bkgnd field "Date" into lineNr-- record data about workout type selected, units to use, etc.put bkgnd field "From" into fromDateconvert fromDate to secondsput bkgnd field "To" into toDateconvert toDate to secondsput bkgnd field "TypeTitle" into theFilterif theFilter = "Workouts" thenput bkgnd field "CurrentSelections" into theSelectionselse put bkgnd field "Selection" into theEquipmentput bkgnd field "Effort" into effortsSelectedput bkgnd field "DistUnit" into distUnitput bkgnd field "TimeUnit" into timeUnitput bkgnd field "PaceUnit" into paceUnitput bkgnd field "WeightUnit" into weightUnitput bkgnd field "Choice1Name" into choice1put bkgnd field "Choice2Name" into choice2-- adjust for empty line in pop-up for one-word namesif line 1 of choice1 is empty then delete line 1 of choice1if line 1 of choice2 is empty then delete line 1 of choice2if (choice1 = "Pace") or (choice2 = "Pace") thenput true into doPaceelse put false into doPaceif (choice1 = "Wght") or (choice2 = "Wght") thenput true into doWeightelse put false into doWeightif (choice1 = "Pulse") or (choice2 = "Pulse") thenput true into doPulseelse put false into doPulse-- find first workout card on or after start dateput findFirstInRange (fromDate) into firstCardif firstCard is empty then exit compileTallylock screenset lockMessages to trueshow messagepush cardgo card firstCard-- Initialize variables for updating the scroll level-- (some are hardcoded, and must be changed as appropriate!)put the textheight of bkgnd field "Date" into theHeightput 18 into nrWorkoutsVisibleput (lineNr-nrWorkoutsVisible)*theHeight into curScrollput "Date SportColumn TypeColumn EffortColumn Workout " &¬¨"Distance Time Comments Choice1 Choice2" into theFieldsput 10 into nrFields-- go through all workout cards in date rangerepeat while (word 1 of the short name of this card) <= toDate-- check if correct sport & workout or shoe typeput false into includeThisWorkoutput false into includeThisWarmupif theFilter = "Workouts" thenrepeat with x = 1 to the number of items of allSportsif bkgnd field "Sport" = item x of allSports thenput line x of theSelections into workoutsSelectedexit repeatend ifend repeatif (bkgnd field "Type" is in workoutsSelected) thenput true into includeThisWorkoutend ifif (item 2 of bkgnd field "Distance" is not empty) and¬¨("Warmup" is in workoutsSelected) thenput true into includeThisWarmupend ifelse -- filter on equipmentif bkgnd field "Equipment" = theEquipment thenput true into includeThisWorkoutend ifif bkgnd field "WarmupEquipment" = theEquipment thenput true into includeThisWarmupend ifend ifput bkgnd field "Effort" into tEffort-- retain effort number onlyput char 1 to offset(" ",tEffort)-1 of tEffort into tEffort-- check whether effort level of workout meets search criteria-- N.B. this is less than ideal for warmups, which will generally--      be at a different effort level than the actual workout,--      but the difference should not rise to any odd outcomes.if (includeThisWorkout or includeThisWarmup) and¬¨(tEffort is in effortsSelected) then-- gather all data from this workout cardadd 1 to lineNrput "Compiling workout " & lineNrput word 1 of the short name of this card into tDateconvert tDate to short dateput bkgnd field "Sport" into tSportput bkgnd field "Type" into tTypeput bkgnd field "Workout" into tWorkoutput line 1 of bkgnd field "Comments" into tCommentsput bkgnd field "Distance" into tempDistanceif item 1 of tempDistance is not empty thenput convertDistance(bkgnd field "DistanceUnit",distUnit,¬¨item 1 of tempDistance) into tDistanceelse put empty into tDistanceif includeThisWarmup and¬¨(item 2 of tempDistance is not empty) thenput convertDistance(bkgnd field "DistanceUnit",distUnit,¬¨item 2 of tempDistance) into tWarmupDistanceelse put empty into tWarmupDistanceput bkgnd field "Time" into tempTimeif item 1 of tempTime is not empty thenput makeNiceTime(timeUnit,getSeconds(bkgnd field "TimeUnit",¬¨item 1 of tempTime)) into tTimeelse put empty into tTimeif includeThisWarmup and¬¨(item 2 of tempTime is not empty) thenput makeNiceTime(timeUnit,getSeconds(bkgnd field "TimeUnit",¬¨item 2 of tempTime)) into tWarmupTimeelse put empty into tWarmupTimeif doPace thenput bkgnd field "Pace" into tPaceif tPace is not empty thenput convertPace(bkgnd field "PaceUnit",paceUnit,tPace)¬¨into tPaceend ifend ifif doPulse then put bkgnd field "Pulse" into tPulseif doWeight thenput bkgnd field "Weight" into tWeightif tWeight is not empty thenput convertWeight(bkgnd field "WeightUnit",weightUnit,tWeight)¬¨into tWeightend ifend if-- jump back to tally card and enter data in appropriate formatspop cardunlock screenif includeThisWorkout thenput tDate into line lineNr of bkgnd field "Date"put tSport into line lineNr of bkgnd field "SportColumn"put tType into line lineNr of bkgnd field "TypeColumn"put tEffort into line lineNr of bkgnd field "EffortColumn"put tWorkout into line lineNr of bkgnd field "Workout"put tComments into line lineNr of bkgnd field "Comments"put tDistance into line lineNr of bkgnd field "Distance"put tTime into line lineNr of bkgnd field "Time"-- deal with the choice columnsput doChoice(1,choice1,tPace,tPulse,tWeight,lineNr)¬¨into line lineNr of bkgnd field "Choice1"put doChoice(2,choice2,tPace,tPulse,tWeight,lineNr)¬¨into line lineNr of bkgnd field "Choice2"put 1 into workoutsAddedelse put 0 into workoutsAddedif includeThisWarmup thenadd workoutsAdded to lineNrput tDate into line lineNr of bkgnd field "Date"put tSport into line lineNr of bkgnd field "SportColumn"put "Warmup" into line lineNr of bkgnd field "TypeColumn"put "-" into line lineNr of bkgnd field "EffortColumn"put "(" & tWorkout & ")" into line lineNr of bkgnd field "Workout"put "Warmup&cooldown for workout"¬¨into line lineNr of bkgnd field "Comments"put tWarmupDistance into line lineNr of bkgnd field "Distance"put tWarmupTime into line lineNr of bkgnd field "Time"-- deal with the choice columns only if cumulative time/dist.if word 1 of choice1 = "Cum" thenput doChoice(1,choice1,tPace,tPulse,tWeight,lineNr)¬¨into line lineNr of bkgnd field "Choice1"else put space into line lineNr of bkgnd field "Choice1"if word 1 of choice2 = "Cum" thenput doChoice(2,choice2,tPace,tPulse,tWeight,lineNr)¬¨into line lineNr of bkgnd field "Choice2"else put space into line lineNr of bkgnd field "Choice2"add 1 to workoutsAddedend if-- update the scroll-level so user can see what is going onadd (workoutsAdded*theHeight) to curScrollif curScroll > 0 thenrepeat with x = 1 to nrFieldsset the scroll of bkgnd field (word x of theFields) to curScrollend repeatend iflock screen-- go back to the workout card, and continuepush cardgo backend ifgo next cardif (the short name of this bkgnd) <> "Workouts" then exit repeatend repeat-- all done -> go back & finish uppop cardhide message-- make choice-popups non-popup if there is data in their columnif lineNr > 0 thenset the style of bkgnd field "Choice1Name" to transparentset the style of bkgnd field "Choice2Name" to transparentend if-- update date fields to reflect total date range in tallyput line 1 of bkgnd field "Date" into bkgnd field "From"put last line of bkgnd field "Date" into bkgnd field "To"end compileTally-- Deal with a choice column-- num = 1 or 2; choice is the type of data selected for that column;-- data = pace, pulse and weight values, as needed; nrWorkouts = the-- total number of workouts currently listed in the tally fieldsfunction doChoice num,choice,pace,pulse,weight,nrWorkoutsif choice = "Pace" thenreturn paceelse if choice = "Pulse" thenreturn pulseelse if choice = "Weight" thenreturn weightelse -- choice is a cumulative valueif nrWorkouts = 1 thenput bkgnd field ("Carry"&num) into curValueelseput line (nrWorkouts-1) of bkgnd field ("Choice"&num) into curValueend ifif choice = "Cum Dist" thenreturn ((line nrWorkouts of bkgnd field "Distance") + curValue)else if choice = "Cum Time" thenput getSeconds(bkgnd field "TimeUnit",curValue) into curValueadd getSeconds(bkgnd field "TimeUnit",¬¨line nrWorkouts of bkgnd field "Time") to curValuereturn makeNiceTime(bkgnd field "TimeUnit",curValue)else return spaceend ifend doChoice-- Export data compiled on this tally-card to a new or existing file-- Data will be exported in tab-delimited format, 1 line per workouton exportDataif bkgnd field "Date" is empty thenanswer "No data to export. Compile tally first."exit exportDataend if-- Get the name of the file which will store the dataanswer "Create new data file, or append to an existing file?"¬¨with "Existing" or "New"if it = "New" thenput newFileName("Name data file:",¬¨"Exercise data -" && the short date) into dataFileif dataFile is empty thenexit exportDataend ifopen file dataFileelseput FileName(TEXT,"Select data file to append to.") into dataFileif it is empty thenexit exportDataend ifopen file dataFilerepeat -- skip to end of fileread from file dataFile for 16384 -- max blocksizeif it is empty then exit repeatend repeatend ifanswer "Precede data by column-headings?" with "No" or "Yes"if it is "Yes" thenput card field "Athlete" of card "Title Card" into theAthleteif theAthlete is not empty thenwrite "Workouts of" && theAthlete & return to file dataFileend ifwrite "Date" & tab & "Sport" & tab & "Workout type" & tab &¬¨"Effort-level" & tab & "Workout" & tab & "Comments" & tab &¬¨"Distance" & tab & "Time" & tab & bkgnd field "Choice1Name" & tab &¬¨bkgnd field "Choice2Name" & return to file dataFileend ifrepeat with x = 1 to the number of lines of bkgnd field "Date"set cursor to busy -- make ball rotatewrite line x of bkgnd field "Date" & tab &¬¨line x of bkgnd field "SportColumn" & tab &¬¨line x of bkgnd field "TypeColumn" & tab &¬¨line x of bkgnd field "EffortColumn" & tab &¬¨line x of bkgnd field "Workout" & tab &¬¨line x of bkgnd field "Comments" & tab &¬¨line x of bkgnd field "Distance" & tab &¬¨line x of bkgnd field "Time" & tab &¬¨line x of bkgnd field "Choice1" & tab &¬¨line x of bkgnd field "Choice2" & return to file dataFileend repeatclose file dataFileanswer "Data exported."end exportData-- jump to the workout described on the line on which the user clickedon jumpToWorkout theLineset cursor to busylock screenput line theLine of bkgnd field "Date" into tDateif tDate is empty then exit jumpToWorkoutput line theLine of bkgnd field "Workout" into tWorkoutconvert tDate to secondspush cardgo card (tDate && "1")if the result is not empty thenanswer "Could not find corresponding workout." with "Sorry"pop cardexit jumpToWorkoutend ifrepeat while tWorkout <> bkgnd field "Workout"go nextif word 1 of the short name of this card <> tDate thenanswer "Could not find corresponding workout." with "Sorry"pop cardexit jumpToWorkoutend ifend repeatunlock screen with visual barn door openend jumpToWorkout-- add a number of days (subtract if nrDays is negative) to bkgnd-- field dateField, which contains the date in short format.on addDays dateField,nrDaysput bkgnd field dateField into tDateconvert tDate to secondsadd nrDays*86400 to tDate -- 86400 = # seconds per dayconvert tDate to short dateput tDate into bkgnd field dateFieldend addDays-- Return list of all fields that scroll simultaneouslyfunction theFieldsreturn "field Date,field SportColumn,field TypeColumn," &¬¨"field EffortColumn,field Workout,field Distance,field Time," &¬¨"field Comments,field Choice1,field Choice2"end theFields</script>
  1395. </background>
  1396.